 /* ==========================================================================
       DESIGN TOKENS & RESET
       ========================================================================== */
    :root {
      --blue-primary: #1565c0;
      --blue-secondary: #0d47a1;
      --blue-accent: #1e88e5;
      --blue-light: #e3f2fd;
      --blue-dark-bg: #0a192f;
      --card-bg: rgba(13, 37, 72, 0.95);

      --white: #ffffff;
      --text-main: #f0f4f8;
      --text-muted: #94a3b8;
      --text-subtle: #64748b;

      --font-heading: 'Outfit', sans-serif;
      --font-body: 'Plus Jakarta Sans', sans-serif;
      --font-mono: 'Fira Code', monospace;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: var(--blue-dark-bg);
      color: var(--text-main);
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      padding-top: 110px; /* Space for fixed banner + nav */
    }

    /* ==========================================================================
       TOP RUNNING BANNER
       ========================================================================== */
    .top-banner {
      width: 100%;
      height: 35px;
      background: linear-gradient(90deg, var(--blue-secondary), var(--blue-accent));
      color: var(--white);
      font-size: 0.88rem;
      font-weight: 600;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 2000;
      display: flex;
      align-items: center;
      overflow: hidden;
    }

    .top-banner span {
      display: inline-block;
      white-space: nowrap;
      padding-left: 100%;
      animation: scrollBanner 24s linear infinite;
    }

    @keyframes scrollBanner {
      0% { transform: translateX(0); }
      100% { transform: translateX(-100%); }
    }

    /* ==========================================================================
       NAVBAR
       ========================================================================== */
    .top-navbar {
      width: 100%;
      position: fixed;
      top: 35px;
      left: 0;
      padding: 10px 24px;
      background: rgba(10, 25, 47, 0.92);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(30, 136, 229, 0.35);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      transition: all 0.3s ease;
      z-index: 1500;
    }

    .top-navbar.scrolled {
      background: rgba(8, 20, 38, 0.98);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
      padding: 8px 24px;
    }

    /* Logo & Branding */
    .top-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .top-logo img {
      display: block;
      object-fit: contain;
      background: rgba(255, 255, 255, 0.05);
    }

    .top-logo.left img {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1.5px solid var(--blue-accent);
    }

    .top-logo.right img {
      width: 40px;
      height: 40px;
      border-radius: 6px;
      border: 1.5px solid var(--blue-accent);
    }

    .brand-text-group {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 2px;
      line-height: 1.2;
    }

    .brand-name {
      font-family: var(--font-heading);
      font-size: 1.15rem;
      font-weight: 700;
      letter-spacing: 0.3px;
      color: var(--white);
      white-space: nowrap;
      text-shadow: 0 2px 6px rgba(30, 136, 229, 0.4);
    }

    .brand-subtitle {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .badge-grade {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 1px;
      color: #64b5f6;
      background: rgba(30, 136, 229, 0.15);
      border: 1px solid rgba(100, 181, 246, 0.3);
      padding: 1px 6px;
      border-radius: 4px;
      text-transform: uppercase;
    }

    .sub-dot {
      font-size: 0.6rem;
      color: var(--text-muted);
      opacity: 0.6;
    }

    .badge-subject {
      font-size: 0.65rem;
      font-weight: 600;
      letter-spacing: 1.2px;
      color: var(--text-muted);
      text-transform: uppercase;
    }

    /* Links */
    .top-links {
      list-style: none;
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .top-links a {
      color: var(--text-main);
      text-decoration: none;
      font-size: 0.92rem;
      font-weight: 600;
      padding: 6px 2px;
      position: relative;
      transition: color 0.25s ease;
    }

    .top-links a::after {
      content: "";
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0%;
      height: 2.5px;
      background: var(--blue-accent);
      transition: width 0.25s ease;
    }

    .top-links a:hover,
    .top-links a.active {
      color: var(--blue-light);
    }

    .top-links a:hover::after,
    .top-links a.active::after {
      width: 100%;
    }

    /* Header Right Actions */
    .top-right-group {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .nav-exit-btn {
      background: linear-gradient(135deg, #d32f2f, #b71c1c);
      color: var(--white);
      border: none;
      border-radius: 6px;
      padding: 6px 14px;
      font-size: 0.88rem;
      font-family: var(--font-body);
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .nav-exit-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 3px 10px rgba(211, 47, 47, 0.4);
    }

    /* Mobile Hamburger */
    .nav-toggle {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 26px;
      height: 20px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      z-index: 1600;
    }

    .nav-toggle span {
      display: block;
      height: 2.5px;
      width: 100%;
      background: var(--white);
      border-radius: 3px;
      transition: all 0.3s ease;
    }

    .nav-toggle.open span:nth-child(1) {
      transform: translateY(8.5px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
      opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
      transform: translateY(-8.5px) rotate(-45deg);
    }

    /* ==========================================================================
       EXIT CONFIRMATION MODAL
       ========================================================================== */
    .exit-modal-overlay {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(5, 12, 26, 0.75);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .exit-modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .exit-modal-card {
      width: 90%;
      max-width: 380px;
      background: var(--card-bg);
      border: 1px solid rgba(41, 121, 255, 0.35);
      border-radius: 14px;
      padding: 24px 20px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(41, 121, 255, 0.2);
      transform: scale(0.92);
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .exit-modal-overlay.active .exit-modal-card {
      transform: scale(1);
    }

    .exit-modal-icon {
      font-size: 2.2rem;
      margin-bottom: 8px;
    }

    .exit-modal-title {
      font-family: var(--font-heading);
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 8px;
    }

    .exit-modal-desc {
      font-size: 0.92rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 22px;
    }

    .exit-modal-actions {
      display: flex;
      gap: 12px;
      justify-content: center;
    }

    .btn-modal-cancel,
    .btn-modal-confirm {
      flex: 1;
      font-family: var(--font-body);
      font-size: 0.9rem;
      font-weight: 600;
      padding: 9px 16px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .btn-modal-cancel {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--text-main);
    }

    .btn-modal-cancel:hover {
      background: rgba(255, 255, 255, 0.16);
      color: var(--white);
    }

    .btn-modal-confirm {
      background: linear-gradient(135deg, #dc2626, #b91c1c);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--white);
      box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    }

    .btn-modal-confirm:hover {
      background: linear-gradient(135deg, #ef4444, #dc2626);
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
    }

    /* ==========================================================================
       SITE FOOTER
       ========================================================================== */
    .site-footer {
      position: relative;
      width: 100%;
      background: linear-gradient(180deg, rgba(8, 20, 38, 0.85) 0%, #060e1d 100%);
      border-top: 1px solid rgba(41, 121, 255, 0.25);
      color: var(--text-muted);
      margin-top: auto;
      overflow: hidden;
    }

    .footer-glow-bar {
      position: absolute;
      top: -1px;
      left: 10%;
      width: 80%;
      height: 2px;
      background: linear-gradient(90deg, transparent, #2979ff, #60a5fa, transparent);
      box-shadow: 0 0 15px rgba(41, 121, 255, 0.6);
    }

    .footer-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 50px 24px 35px 24px;
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 40px;
    }

    .footer-heading {
      font-family: var(--font-heading);
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 18px;
      position: relative;
      display: inline-block;
    }

    .footer-heading::after {
      content: "";
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 24px;
      height: 2px;
      background: var(--blue-accent);
      border-radius: 2px;
    }

    .footer-logo-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }

    .footer-seal {
      width: 44px;
      height: 44px;
      object-fit: contain;
      border-radius: 50%;
      border: 1.5px solid var(--blue-accent);
    }

    .footer-brand-title {
      display: block;
      font-family: var(--font-heading);
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--white);
      line-height: 1.2;
      margin-bottom: 3px;
    }

    .footer-tags {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .footer-desc {
      font-size: 0.88rem;
      line-height: 1.55;
      color: var(--text-muted);
      margin-bottom: 16px;
      max-width: 540px;
    }

    .footer-formula-pill {
      display: inline-flex;
      align-items: center;
      background: rgba(41, 121, 255, 0.08);
      border: 1px solid rgba(41, 121, 255, 0.3);
      padding: 6px 14px;
      border-radius: 8px;
      box-shadow: inset 0 0 10px rgba(41, 121, 255, 0.05);
    }

    .footer-formula-pill code {
      font-family: var(--font-mono);
      font-size: 0.82rem;
      color: #93c5fd;
    }

    .footer-specs-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 16px;
    }

    .spec-item {
      display: flex;
      flex-direction: column;
      font-size: 0.85rem;
    }

    .spec-label {
      font-size: 0.75rem;
      color: var(--text-subtle);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-weight: 600;
    }

    .spec-val {
      color: var(--text-main);
      font-weight: 500;
    }

    .footer-partner-logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 6px 12px;
      border-radius: 8px;
      width: fit-content;
    }

    .footer-partner-logo img {
      width: 28px;
      height: 28px;
      object-fit: contain;
      border-radius: 4px;
    }

    .footer-partner-logo span {
      font-size: 0.8rem;
      font-weight: 600;
      color: #cbd5e1;
    }

    /* Footer Bottom Bar */
    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      background: rgba(4, 10, 20, 0.95);
      padding: 18px 24px;
    }

    .footer-bottom-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }

    .copyright-text {
      font-size: 0.82rem;
      color: var(--text-subtle);
    }

    .copyright-text strong {
      color: var(--text-muted);
    }

    .back-to-top {
      color: #60a5fa;
      font-size: 0.82rem;
      font-weight: 600;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 5px 12px;
      border-radius: 6px;
      background: rgba(41, 121, 255, 0.1);
      border: 1px solid rgba(41, 121, 255, 0.25);
      transition: all 0.2s ease;
    }

    .back-to-top:hover {
      background: rgba(41, 121, 255, 0.2);
      color: var(--white);
      transform: translateY(-2px);
    }

    /* ==========================================================================
       MEDIA QUERIES & RESPONSIVENESS
       ========================================================================== */
    @media screen and (max-width: 992px) {
      .nav-toggle {
        display: flex;
      }

      .nav-container {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 75px);
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-left: 1px solid rgba(30, 136, 229, 0.3);
        padding: 30px 20px;
        transition: right 0.3s ease;
        box-shadow: -6px 0 20px rgba(0, 0, 0, 0.5);
      }

      .nav-container.open {
        right: 0;
      }

      .top-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
      }

      .top-links a {
        font-size: 1.05rem;
        display: block;
        width: 100%;
      }

      .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
      }
    }

    @media screen and (max-width: 600px) {
      body {
        padding-top: 100px;
      }

      .top-navbar {
        padding: 8px 14px;
      }

      .brand-name {
        font-size: 0.92rem;
      }

      .badge-grade,
      .badge-subject {
        font-size: 0.58rem;
        letter-spacing: 0.8px;
      }

      .top-logo.left img,
      .top-logo.right img {
        width: 34px;
        height: 34px;
      }

      .nav-exit-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
      }

      .footer-container {
        padding: 36px 16px 24px 16px;
      }

      .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
      }

      .footer-formula-pill {
        width: 100%;
        justify-content: center;
      }
    } /* =========================================
   LESSON 3.2 — CLEAN ACADEMIC DESIGN
   Green + Blue Chemistry Theme
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Myanmar:wght@400;500;600;700&display=swap');

.redox32-page {
  --r-green: #07866b;
  --r-green-dark: #05664f;
  --r-blue: #2474c5;
  --r-blue-dark: #175b9e;
  --r-ink: #19343d;
  --r-muted: #607780;
  --r-bg: #f3f8f8;
  --r-card: #ffffff;
  --r-line: #dce9e9;
  --r-soft-green: #eaf6f1;
  --r-soft-blue: #edf4fc;

  width: 100%;
  padding: 22px clamp(14px, 3vw, 42px) 55px;
  color: var(--r-ink);
  font-family: "Inter", "Noto Sans Myanmar", sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

.redox32-page *,
.redox32-page *::before,
.redox32-page *::after {
  box-sizing: border-box;
}

.redox32-page h1,
.redox32-page h2,
.redox32-page h3,
.redox32-page h4,
.redox32-page p {
  margin-top: 0;
}

.redox32-page h1,
.redox32-page h2,
.redox32-page h3,
.redox32-page h4 {
  line-height: 1.35;
  letter-spacing: -0.4px;
}

.redox32-page p {
  margin-bottom: 0;
  color: var(--r-muted);
}

.redox32-page img {
  max-width: 100%;
  display: block;
}


/* HERO */

.redox32-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.5fr .6fr;
  align-items: center;
  gap: 25px;

  width: 100%;
  min-height: 260px;
  padding: clamp(25px, 4vw, 48px);

  color: #fff;
  border-radius: 17px;
  background: linear-gradient(115deg, #087d62 0%, #116e9c 100%);
}

.redox32-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  right: 7%;
  top: -190px;
  pointer-events: none;
}

.redox32-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.redox32-eyebrow,
.redox32-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--r-green);
}

.redox32-eyebrow {
  color: rgba(255,255,255,.8);
}

.redox32-hero h1 {
  max-width: 760px;
  margin: 13px 0;
  font-size: clamp(29px, 4vw, 47px);
  font-weight: 800;
  line-height: 1.17;
}

.redox32-hero-content > p {
  max-width: 680px;
  color: rgba(255,255,255,.86);
  font-size: 16px;
}

.redox32-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 23px;
}

.redox32-lesson-tag {
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 7px;
  background: rgba(255,255,255,.12);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.redox32-language-btn {
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.16);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.redox32-language-btn:hover {
  background: rgba(255,255,255,.3);
  transform: translateY(-2px);
}


/* HERO VISUAL */

.redox32-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
}

.redox32-visual-circle {
  display: grid;
  place-items: center;
  width: 145px;
  height: 145px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 18px rgba(255,255,255,.06);
}

.redox32-visual-circle span {
  font-size: 47px;
  font-weight: 800;
}

.redox32-visual-item {
  position: absolute;
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 13px;
  background: #fff;
  color: var(--r-green-dark);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.redox32-visual-o { top: 0; left: 16%; }
.redox32-visual-h { right: 7%; top: 32%; }
.redox32-visual-z { bottom: 0; left: 27%; }


/* GENERAL SECTIONS */

.redox32-section {
  width: 100%;
  margin-top: 23px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--r-line);
  border-radius: 14px;
  background: var(--r-card);
  box-shadow: 0 3px 13px rgba(24, 65, 72, .035);
}

.redox32-section-heading {
  margin-bottom: 22px;
}

.redox32-section-heading h2 {
  margin: 6px 0;
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 800;
}

.redox32-section-heading > p {
  font-size: 14px;
}


/* OVERVIEW */

.redox32-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.redox32-overview-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--r-line);
  border-radius: 11px;
  background: #fbfdfd;
}

.redox32-card-number {
  color: #a2b6bb;
  font-size: 11px;
  font-weight: 800;
}

.redox32-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin: 12px 0;
  border-radius: 10px;
  color: var(--r-green);
  background: var(--r-soft-green);
  font-size: 19px;
  font-weight: 800;
}

.redox32-overview-card h3 {
  margin-bottom: 3px;
  font-size: 16px;
}

.redox32-overview-card p {
  font-size: 13px;
}


/* CONCEPT HEADINGS */

.redox32-concept-heading {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin-bottom: 25px;
}

.redox32-concept-index {
  flex: 0 0 49px;
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(140deg, var(--r-green), var(--r-blue));
  font-size: 19px;
  font-weight: 800;
}

.redox32-concept-heading h2 {
  margin: 5px 0;
  font-size: clamp(20px, 2.5vw, 27px);
}

.redox32-concept-heading p {
  font-size: 14px;
}


/* CONTENT CARDS */

.redox32-two-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.redox32-info-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--r-line);
  border-radius: 12px;
  background: #fff;
}

.redox32-oxidation-card {
  border-top: 4px solid var(--r-green);
  background: linear-gradient(180deg, #f4fbf8, #fff 55%);
}

.redox32-reduction-card {
  border-top: 4px solid var(--r-blue);
  background: linear-gradient(180deg, #f3f8ff, #fff 55%);
}

.redox32-card-label {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 17px;
  color: var(--r-green-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.redox32-reduction-card .redox32-card-label {
  color: var(--r-blue-dark);
}

.redox32-info-card h3 {
  margin-bottom: 9px;
  font-size: 19px;
}

.redox32-info-card > p {
  font-size: 14px;
}

.redox32-reaction-name {
  margin-top: 17px;
  color: var(--r-muted);
  font-size: 13px;
  font-weight: 600;
}

.redox32-equation {
  margin-top: 14px;
  padding: 15px 12px;
  border: 1px solid var(--r-line);
  border-radius: 9px;
  background: #fff;
  color: #155c72;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 800;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.redox32-result {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 8px;
  background: var(--r-soft-green);
}

.redox32-reduction-card .redox32-result {
  background: var(--r-soft-blue);
}

.redox32-result strong {
  display: block;
  margin-bottom: 3px;
  color: var(--r-green-dark);
  font-size: 12px;
}

.redox32-reduction-card .redox32-result strong {
  color: var(--r-blue-dark);
}

.redox32-result p {
  font-size: 13px;
}


/* IMAGE PANEL */

.redox32-image-panel {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) 1.5fr;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--r-line);
  border-radius: 12px;
  background: #f8fbfb;
}

.redox32-image-panel img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 9px;
}

.redox32-image-panel h3 {
  margin: 7px 0;
  font-size: 19px;
}

.redox32-image-panel p {
  font-size: 14px;
}


/* RULE STRIPS */

.redox32-rule-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 20px 0;
}

.redox32-rule-strip > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--r-line);
  border-radius: 10px;
  background: #f9fcfc;
}

.redox32-rule-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  height: 43px;
  border-radius: 9px;
  color: var(--r-green-dark);
  background: var(--r-soft-green);
  font-size: 20px;
  font-weight: 800;
}

.redox32-rule-strip strong {
  display: block;
  font-size: 14px;
}

.redox32-rule-strip p {
  font-size: 12px;
}


/* DEFINITION PANEL */

.redox32-definition-panel {
  margin-top: 22px;
  padding: 23px;
  border: 1px solid var(--r-line);
  border-radius: 11px;
  background: #f8fbfb;
}

.redox32-definition-panel h3 {
  margin: 6px 0 10px;
  font-size: 20px;
}

.redox32-definition-panel > p {
  font-size: 14px;
}

.redox32-definition-grid {
  margin-top: 18px;
}

.redox32-definition-item {
  padding: 19px;
  border: 1px solid var(--r-line);
  border-radius: 10px;
  background: #fff;
}

.redox32-definition-item h4 {
  margin-bottom: 10px;
  color: var(--r-green-dark);
}

.redox32-definition-item p {
  margin-top: 9px;
  font-size: 13px;
}


/* ELECTRON TRANSFER */

.redox32-explanation {
  margin-bottom: 19px;
  padding: 17px 20px;
  border-left: 4px solid var(--r-green);
  border-radius: 0 9px 9px 0;
  background: #f6faf9;
}

.redox32-explanation p {
  font-size: 14px;
}

.redox32-transfer-box {
  padding: 23px;
  border: 1px solid var(--r-line);
  border-radius: 12px;
  background: #f8fbfc;
}

.redox32-transfer-heading {
  text-align: center;
  margin-bottom: 20px;
}

.redox32-transfer-heading h3 {
  margin: 5px 0 0;
  font-size: 20px;
}

.redox32-transfer-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 55px);
}

.redox32-atom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.redox32-atom > span {
  color: var(--r-muted);
  font-size: 11px;
  font-weight: 800;
}

.redox32-atom-circle {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px solid var(--r-green);
  border-radius: 50%;
  color: var(--r-green-dark);
  background: var(--r-soft-green);
  font-size: 27px;
  font-weight: 800;
}

.redox32-atom-blue {
  border-color: var(--r-blue);
  color: var(--r-blue-dark);
  background: var(--r-soft-blue);
}

.redox32-atom strong {
  font-size: 13px;
}

.redox32-atom small {
  color: var(--r-green-dark);
  font-size: 10px;
  font-weight: 800;
}

.redox32-transfer-arrow {
  color: var(--r-blue);
  text-align: center;
  font-size: 23px;
  font-weight: 800;
}

.redox32-transfer-arrow span {
  display: block;
  font-size: 27px;
}

.redox32-transfer-arrow small {
  display: block;
  color: var(--r-muted);
  font-size: 10px;
  font-weight: 600;
}


/* WORKED EXAMPLE */

.redox32-example-box {
  margin-top: 22px;
  padding: 23px;
  border: 1px solid var(--r-line);
  border-radius: 12px;
  background: #fbfdfd;
}

.redox32-example-box > h3 {
  margin: 6px 0 14px;
  font-size: 20px;
}

.redox32-main-equation {
  margin: 12px 0 20px;
  padding: 19px;
  background: var(--r-soft-blue);
  font-size: clamp(16px, 2.3vw, 22px);
}

.redox32-element-symbol {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 12px;
  color: var(--r-green-dark);
  background: var(--r-soft-green);
  font-size: 22px;
  font-weight: 800;
}

.redox32-reduction-card .redox32-element-symbol {
  color: var(--r-blue-dark);
  background: var(--r-soft-blue);
}

.redox32-combined-result {
  background: #edf6f5;
}


/* OXIDATION NUMBER */

.redox32-state-card {
  padding: 22px;
  border: 1px solid var(--r-line);
  border-radius: 11px;
  background: #fff;
}

.redox32-state-values {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 15px 0;
}

.redox32-state-values strong {
  display: grid;
  place-items: center;
  width: 65px;
  height: 55px;
  border-radius: 9px;
  background: var(--r-soft-green);
  color: var(--r-green-dark);
  font-size: 24px;
}

.redox32-reduction-card .redox32-state-values strong {
  background: var(--r-soft-blue);
  color: var(--r-blue-dark);
}

.redox32-state-values span {
  font-size: 24px;
  font-weight: 800;
  color: var(--r-muted);
}

.redox32-state-card h3 {
  margin-bottom: 7px;
  font-size: 17px;
}

.redox32-state-card p {
  font-size: 13px;
}


/* SUMMARY TABLE */

.redox32-summary-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--r-line);
  border-radius: 10px;
}

.redox32-summary-table {
  width: 100%;
  min-width: 530px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.redox32-summary-table th {
  padding: 15px;
  color: #fff;
  background: var(--r-green-dark);
  font-size: 12px;
  letter-spacing: .5px;
}

.redox32-summary-table td {
  padding: 15px;
  border-bottom: 1px solid var(--r-line);
  color: var(--r-ink);
}

.redox32-summary-table tr:last-child td {
  border-bottom: 0;
}

.redox32-summary-table tbody tr:nth-child(even) {
  background: #f4f9f8;
}

.redox32-summary-table tbody td:first-child {
  font-weight: 800;
}


/* FINAL MESSAGE */

.redox32-final-message {
  margin-top: 23px;
  padding: 28px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(115deg, #087d62, #176eaa);
}

.redox32-final-message > span {
  color: rgba(255,255,255,.75);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.redox32-final-message h2 {
  max-width: 720px;
  margin: 8px 0;
  color: #fff;
  font-size: clamp(21px, 3vw, 30px);
}

.redox32-final-message p {
  color: rgba(255,255,255,.85);
  font-size: 14px;
}

.redox32-final-equation {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 800;
}


/* MYANMAR FONT */

.redox32-page.redox32-myanmar,
.redox32-page.redox32-myanmar * {
  font-family: "Noto Sans Myanmar", "Myanmar Text", sans-serif;
  letter-spacing: 0;
}

.redox32-page.redox32-myanmar {
  line-height: 2;
}

.redox32-page.redox32-myanmar h1,
.redox32-page.redox32-myanmar h2,
.redox32-page.redox32-myanmar h3,
.redox32-page.redox32-myanmar h4 {
  line-height: 1.65;
}

.redox32-page.redox32-myanmar .redox32-equation,
.redox32-page.redox32-myanmar .redox32-final-equation {
  font-family: "Inter", sans-serif;
}


/* RESPONSIVE */

@media (max-width: 900px) {
  .redox32-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .redox32-hero {
    grid-template-columns: 1fr .4fr;
  }
}

@media (max-width: 650px) {
  .redox32-page {
    padding: 14px 12px 35px;
  }

  .redox32-hero {
    grid-template-columns: 1fr;
    padding: 25px 20px;
  }

  .redox32-hero-visual {
    min-height: 145px;
  }

  .redox32-visual-circle {
    width: 105px;
    height: 105px;
  }

  .redox32-visual-circle span {
    font-size: 36px;
  }

  .redox32-visual-item {
    width: 39px;
    height: 39px;
  }

  .redox32-two-cards,
  .redox32-rule-strip {
    grid-template-columns: 1fr;
  }

  .redox32-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .redox32-section {
    padding: 19px 15px;
    margin-top: 15px;
  }

  .redox32-concept-heading {
    gap: 12px;
  }

  .redox32-concept-index {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .redox32-info-card {
    padding: 18px;
  }

  .redox32-image-panel {
    grid-template-columns: 1fr;
  }

  .redox32-image-panel img {
    height: 190px;
  }

  .redox32-transfer-box,
  .redox32-example-box {
    padding: 17px;
  }

  .redox32-transfer-flow {
    gap: 10px;
  }

  .redox32-transfer-arrow {
    font-size: 15px;
  }

  .redox32-transfer-arrow span {
    font-size: 21px;
  }

  .redox32-atom-circle {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .redox32-atom strong {
    font-size: 11px;
  }

  .redox32-final-message {
    padding: 22px 18px;
  }
}

@media (max-width: 380px) {
  .redox32-overview-grid {
    grid-template-columns: 1fr;
  }

  .redox32-transfer-flow {
    flex-wrap: wrap;
  }
}